WpAssetCleanUp\Admin\PluginAnnouncements D

Total Complexity 151
Dependencies 10
Dependents 2
Total lines 1,252
Lines of code 732
Logical lines of code 283
Comment lines 303
Methods 25
Properties 11

Methods 25

Method Rating Maintainability Complexity Lines of code
displayOneAnnouncement()
D
31 34 101
displayJsFooter()
B
33 4 250
isCurrentTimeBetweenAnyEnabledAnnouncementTime()
A
51 13 24
updateAnnouncementsViaActionType()
A
49 11 30
isMatchForExtraConditions()
A
50 10 27
_showOnCurrentAdminPage()
A
55 8 20
snoozeNextAnnouncementsAfterCurrentOne()
S
58 8 14
adminHead()
S
46 2 75
_comparePriority()
S
64 7 8
getPluginUsageData()
S
58 5 15
isSiteTimezoneUtc()
S
62 5 11
getAnnouncementsFromTheFeed()
S
53 4 24
init()
S
54 4 20
feedUnixToWordPressUnix()
S
58 4 14
handleFallbackActions()
S
59 4 14
updateAnnouncementState()
S
63 4 9
sanitizeAnnouncements()
S
63 4 10
isShowAnnouncementsEnabled()
S
66 3 8
handleCacheClearingOnRequest()
S
66 3 8
handleSettingsClearingOnRequest()
S
64 3 9
handleAjaxActionRequest()
S
68 3 6
renderAnnouncementsContainer()
S
65 3 10
fillAnnouncementContainerAjax()
S
62 2 11
updateAnnouncementsSettings()
S
69 2 6
reloadAnnouncementsSettingsTab()
S
66 1 8